{% extends "base/base.html" %}
{% import "macro/display.html" as display -%}
{% block title %}{{ gettext(list_title) }}{% endblock %}

{% block main %}
    <h2>
        <img class="icon_header" src="{{ STATIC_URL }}icon_screenshot.png" alt="" />
        {{ gettext(list_title) }}
    </h2>
    
    {% for l in al %}
        <a href="{{ url(letter_url_name, l) }}">
            {{ l|upper }}
        </a>
    {% endfor %}
        
    [<a href="{{ url(all_url_name) }}">{{ gettext("All Images") }}</a>]
        
    {% set objs, paging = dv.paginate(object_list) %}
        
    <br />
    {%- if desc_function -%}
        {%- for scr in objs -%}
            {{ display.screenshot(scr, extra_info = desc_function(scr)) }}
        {%- endfor -%}
    {%- else -%}
        {%- for scr in objs -%}
            {{ display.screenshot(scr) }}
        {%- endfor -%}
    {%- endif -%}
    
    <div class="clear"></div>
    
    <br />
    {{ paging }}
{% endblock %}
